//
//  BaseCell.m
//  Finance
//
//  Created by 郝旭珊 on 2017/12/25.
//  Copyright © 2017年 郝旭珊. All rights reserved.
//

#import "BaseCell.h"

@interface BaseCell()



@end


@implementation BaseCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        [self configureSubviews];
    }
    
    return self;
}


- (void)configureSubviews{
    _titleLabel = [UILabel labelWithTextFont:FONT_BIG andTextColor:BLACKCOLOR];
    _contentLabel = [UILabel labelWithTextFont:FONT_NORMAL andTextColor:GRAYCOLOR_TEXT];
    _nameLabel = [UILabel labelWithTextFont:FONT_SMALL andTextColor:GRAYCOLOR_TEXT_LIGHT];
    
    _contentImageView = [UIImageView new];
    _headerImageView = [UIImageView new];
    
    
    UIView *cutline = [UIView new];
    cutline.backgroundColor = GRAYCOLOR_BORDER;
    [self.contentView addSubview:cutline];
    [cutline mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(MARGIN);
        make.right.equalTo(self.contentView).offset(-MARGIN);
        make.height.mas_equalTo(1);
        make.bottom.equalTo(self.contentView);
    }];
    
}


- (void)awakeFromNib {
    [super awakeFromNib];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
